package com.csun.cmny.provider.model.vo.device;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2019-02-25 14:22
 * @Description: the class dmc device alert vo
 */
@Data
@ApiModel(value = "life报警信息")
public class DmcDeviceAlertLifeVo  {

    private static final long serialVersionUID = -1149575048295289818L;


    /*报警id*/
    private Long alertId;
    /**
     * 报警位置
     */
    private String location;

    /**
     * 警报类型  0-紧急警报 1-范围警报 2-紧急按钮 3-人体感应 4-门禁警报 5-孝心手环 6-(日创床垫)从床上跌倒 7-(日创床垫)呼吸停止 8-(日创床垫)翻身
     */
    private Integer alertType;

    /*警报颜色*/
    private String color;


    /*警报信息*/
    private String alertInfo;

    /*房间id*/
    private Long roomId;

    /*设备id*/
    private Long deviceId;

    //设备类型
    private Long deviceType;


    /**
     * 创建时间
     */
    @Column(name = "created_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;


}
